# If the distribution source is already known, we can avoid listing
# stuff that isn't there.
if [ ! -r $TMP/SeTT_PX -o ! -r $TMP/SeTDS -o ! -r $TMP/SeTmodel ]; then
unset T_PX
unset DS
unset MODEL
else
T_PX="`cat $TMP/SeTT_PX`"
DS="`cat $TMP/SeTDS`"
MODEL="`cat $TMP/SeTmodel`"
fi
SIZE_A="0"
SIZE_AP="0"
SIZE_D="0"
SIZE_DOC="0"
SIZE_E="0"
SIZE_G="0"
SIZE_GNOME="0"
SIZE_KDE="0"
SIZE_L="0"
SIZE_M="0"
SIZE_N="0"
SIZE_T="0"
SIZE_TCL="0"
SIZE_X="0"
SIZE_XAP="0"
SIZE_XFCE="0"
SIZE_OPT="0"
SIZE_MINIISO="0"
WHOLESIZE="0"
if [ -r $DS/sizes ]; then
. $DS/sizes
fi
rm -f $TMP/SeTSERIES $TMP/tmpscript
echo "dialog --title \"`gettext "PACKAGE SERIES SELECTION"`\" --item-help --checklist \
\"`gettext "Now it's time to select which general categories of software \
to install on your system. \
Use the spacebar to select or unselect the software you wish to \
install. \
You can use the up and down arrows to see all the possible choices. \
Recommended choices have been preselected. \
Press the ENTER key when you are finished."`\" \
20 75 9 \\"> $TMP/tmpscript
if [ -d $MODEL/a -o "$MODEL" = "" ]; then
echo "\"a\" \"`gettext "Base Linux system"` ($SIZE_A MB)\" on \"`gettext "The A (base) series contains the kernel and main system utilities."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/ap -o "$MODEL" = "" ]; then
echo "\"ap\" \"`gettext "Various Applications that do not need X"` ($SIZE_AP MB)\" on \"`gettext "The AP series is a collection of useful applications."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/d -o "$MODEL" = "" ]; then
echo "\"d\" \"`gettext "Program Development (C, C++, Lisp, Perl, etc.)"` ($SIZE_D MB)\" on \"`gettext "The D series contains compilers, debuggers, and other programming tools."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/doc -o "$MODEL" = "" ]; then
echo "\"doc\" \"`gettext "FAQ lists, HOWTO documentation"` ($SIZE_DOC MB)\" on \"`gettext "The DOC series contains documentation for Linux system administrators."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/e -o "$MODEL" = "" ]; then
echo "\"e\" \"GNU/Emacs ($SIZE_E MB)\" on \"`gettext "The E series contains Emacs editor/environment."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/g -o "$MODEL" = "" ]; then
echo "\"g\" \"`gettext "Games for X."` ($SIZE_G MB)\" on \"`gettext "A lot of great games for X"`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/gnome -o "$MODEL" = "" ]; then
echo "\"gnome\" \"`gettext "GNOME Desktop Environment."` ($SIZE_GNOME MB)\" off \"`gettext "GNU Network Object Model Environment"`\" \\" >> $TMP/tmpscript
echo "\"l\" \"`gettext "System Libraries"` ($SIZE_L MB)\" on \"`gettext "The L series contains libraries needed by programs."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/m -o "$MODEL" = "" ]; then
echo "\"m\" \"`gettext "Multimedia"` ($SIZE_M MB)\" on \"`gettext "Audio/Video players, decoders and other things."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/n -o "$MODEL" = "" ]; then
echo "\"n\" \"`gettext "Networking (TCP/IP, UUCP, Mail, News.)"` ($SIZE_N MB)\" on \"`gettext "The N series contains network related clients and servers."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/t -o "$MODEL" = "" ]; then
echo "\"t\" \"`gettext "The teTeX distribution of TeX."` ($SIZE_T MB)\" on \"`gettext "The T series contains teTeX distribution of TeX."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/tcl -o "$MODEL" = "" ]; then
echo "\"tcl\" \"`gettext "TCL/TK script languages."` ($SIZE_TCL MB)\" on \"`gettext "The TCL series contains TCL/TK script languages."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/x -o "$MODEL" = "" ]; then
echo "\"x\" \"`gettext "Xorg X Window System"` ($SIZE_X MB)\" on \"`gettext "The X series contains Xorg, the window system used by Linux."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/xap -o "$MODEL" = "" ]; then
echo "\"xap\" \"`gettext "X Applications"` ($SIZE_XAP MB)\" on \"`gettext "The XAP series is a collection of applications for X."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/xfce -o "$MODEL" = "" ]; then
echo "\"xfce\" \"`gettext "XFCE Desktop Environment"` ($SIZE_XFCE MB)\" on \"`gettext "The XFCE series contains packages/modules of XFCE Desktop Environment."`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/opt -o "$MODEL" = "" ]; then
echo "\"opt\" \"`gettext "Optional packages"` ($SIZE_OPT MB)\" on \"`gettext "The OPT series contains optional packages"`\" \\" >> $TMP/tmpscript
fi
if [ -d $MODEL/miniiso -o "$MODEL" = "" ]; then
echo "\"miniiso\" \"`gettext "Minimal set of packages"` ($SIZE_MINIISO MB)\" on \"`gettext "Packages needed to boot KateOS"`\" \\" >> $TMP/tmpscript